#ifndef C_QPAINTER_H
#define C_QPAINTER_H

/****************************************************************************
** QPainter C bindings generated from reading C++ file 'qpainter.h'
**
** Created: Tue Jul 30 19:22:31 2002
**      by: The Qt Meta Object Compiler ($Revision: 2.53 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

C_EXPORT QPainterH QPainter_create();
C_EXPORT void QPainter_destroy(QPainterH handle);
C_EXPORT QPainterH QPainter_create2(const QPaintDeviceH p1);
C_EXPORT QPainterH QPainter_create3(const QPaintDeviceH p1, const QWidgetH p2);
C_EXPORT bool QPainter_begin(QPainterH handle, const QPaintDeviceH p1);
C_EXPORT bool QPainter_begin2(QPainterH handle, const QPaintDeviceH p1, const QWidgetH p2);
C_EXPORT bool QPainter_end(QPainterH handle);
C_EXPORT QPaintDeviceH QPainter_device(QPainterH handle);

C_EXPORT void QPainter_redirect(QPaintDeviceH pdev, QPaintDeviceH replacement);
C_EXPORT bool QPainter_isActive(QPainterH handle);
C_EXPORT void QPainter_flush(QPainterH handle);
C_EXPORT void QPainter_save(QPainterH handle);
C_EXPORT void QPainter_restore(QPainterH handle);
C_EXPORT void QPainter_fontMetrics(QPainterH handle, QFontMetricsH retval);
C_EXPORT void QPainter_fontInfo(QPainterH handle, QFontInfoH retval);
C_EXPORT const QFontH QPainter_font(QPainterH handle);
C_EXPORT void QPainter_setFont(QPainterH handle, const QFontH p1);
C_EXPORT const QPenH QPainter_pen(QPainterH handle);
C_EXPORT void QPainter_setPen(QPainterH handle, const QPenH p1);
C_EXPORT void QPainter_setPen2(QPainterH handle, PenStyle p1);
C_EXPORT void QPainter_setPen3(QPainterH handle, const QColorH p1);
C_EXPORT const QBrushH QPainter_brush(QPainterH handle);
C_EXPORT void QPainter_setBrush(QPainterH handle, const QBrushH p1);
C_EXPORT void QPainter_setBrush2(QPainterH handle, BrushStyle p1);
C_EXPORT void QPainter_setBrush3(QPainterH handle, const QColorH p1);
C_EXPORT void QPainter_pos(QPainterH handle, PPoint retval);
C_EXPORT const QColorH QPainter_backgroundColor(QPainterH handle);
C_EXPORT void QPainter_setBackgroundColor(QPainterH handle, const QColorH p1);
C_EXPORT BGMode QPainter_backgroundMode(QPainterH handle);
C_EXPORT void QPainter_setBackgroundMode(QPainterH handle, BGMode p1);
C_EXPORT RasterOp QPainter_rasterOp(QPainterH handle);
C_EXPORT void QPainter_setRasterOp(QPainterH handle, RasterOp p1);
C_EXPORT const QPointH QPainter_brushOrigin(QPainterH handle);
C_EXPORT void QPainter_setBrushOrigin(QPainterH handle, int x, int y);
C_EXPORT void QPainter_setBrushOrigin2(QPainterH handle, const QPointH p1);
C_EXPORT bool QPainter_hasViewXForm(QPainterH handle);
C_EXPORT bool QPainter_hasWorldXForm(QPainterH handle);
C_EXPORT void QPainter_setViewXForm(QPainterH handle, bool p1);
C_EXPORT void QPainter_window(QPainterH handle, PRect retval);
C_EXPORT void QPainter_setWindow(QPainterH handle, PRect p1);
C_EXPORT void QPainter_setWindow2(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_viewport(QPainterH handle, PRect retval);
C_EXPORT void QPainter_setViewport(QPainterH handle, PRect p1);
C_EXPORT void QPainter_setViewport2(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_setWorldXForm(QPainterH handle, bool p1);
C_EXPORT const QWMatrixH QPainter_worldMatrix(QPainterH handle);
C_EXPORT void QPainter_setWorldMatrix(QPainterH handle, const QWMatrixH p1, bool combine);
C_EXPORT void QPainter_saveWorldMatrix(QPainterH handle);
C_EXPORT void QPainter_restoreWorldMatrix(QPainterH handle);
C_EXPORT void QPainter_scale(QPainterH handle, double sx, double sy);
C_EXPORT void QPainter_shear(QPainterH handle, double sh, double sv);
C_EXPORT void QPainter_rotate(QPainterH handle, double a);
C_EXPORT void QPainter_translate(QPainterH handle, double dx, double dy);
C_EXPORT void QPainter_resetXForm(QPainterH handle);
C_EXPORT void QPainter_xForm(QPainterH handle, PPoint retval, const QPointH p1);
C_EXPORT void QPainter_xForm2(QPainterH handle, PRect retval, PRect p1);
C_EXPORT void QPainter_xForm3(QPainterH handle, PPointArray retval, PPointArray p1);
C_EXPORT void QPainter_xForm4(QPainterH handle, PPointArray retval, PPointArray p1, int index, int npoints);
C_EXPORT void QPainter_xFormDev(QPainterH handle, PPoint retval, const QPointH p1);
C_EXPORT void QPainter_xFormDev2(QPainterH handle, PRect retval, PRect p1);
C_EXPORT void QPainter_xFormDev3(QPainterH handle, PPointArray retval, PPointArray p1);
C_EXPORT void QPainter_xFormDev4(QPainterH handle, PPointArray retval, PPointArray p1, int index, int npoints);
C_EXPORT void QPainter_setClipping(QPainterH handle, bool p1);
C_EXPORT bool QPainter_hasClipping(QPainterH handle);
C_EXPORT const QRegionH QPainter_clipRegion(QPainterH handle);
C_EXPORT void QPainter_setClipRect(QPainterH handle, PRect p1);
C_EXPORT void QPainter_setClipRect2(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_setClipRegion(QPainterH handle, const QRegionH p1);
C_EXPORT void QPainter_drawPoint(QPainterH handle, int x, int y);
C_EXPORT void QPainter_drawPoint2(QPainterH handle, const QPointH p1);
C_EXPORT void QPainter_drawPoints(QPainterH handle, PPointArray a, int index, int npoints);
C_EXPORT void QPainter_moveTo(QPainterH handle, int x, int y);
C_EXPORT void QPainter_moveTo2(QPainterH handle, const QPointH p1);
C_EXPORT void QPainter_lineTo(QPainterH handle, int x, int y);
C_EXPORT void QPainter_lineTo2(QPainterH handle, const QPointH p1);
C_EXPORT void QPainter_drawLine(QPainterH handle, int x1, int y1, int x2, int y2);
C_EXPORT void QPainter_drawLine2(QPainterH handle, const QPointH p1, const QPointH p2);
C_EXPORT void QPainter_drawRect(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_drawRect2(QPainterH handle, PRect p1);
C_EXPORT void QPainter_drawWinFocusRect(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_drawWinFocusRect2(QPainterH handle, int x, int y, int w, int h, const QColorH bgColor);
C_EXPORT void QPainter_drawWinFocusRect3(QPainterH handle, PRect p1);
C_EXPORT void QPainter_drawWinFocusRect4(QPainterH handle, PRect p1, const QColorH bgColor);
C_EXPORT void QPainter_drawRoundRect(QPainterH handle, int x, int y, int w, int h, int p5, int p6);
C_EXPORT void QPainter_drawRoundRect2(QPainterH handle, PRect p1, int p2, int p3);
C_EXPORT void QPainter_drawRoundRect3(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_drawRoundRect4(QPainterH handle, PRect p1);
C_EXPORT void QPainter_drawEllipse(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_drawEllipse2(QPainterH handle, PRect p1);
C_EXPORT void QPainter_drawArc(QPainterH handle, int x, int y, int w, int h, int a, int alen);
C_EXPORT void QPainter_drawArc2(QPainterH handle, PRect p1, int a, int alen);
C_EXPORT void QPainter_drawPie(QPainterH handle, int x, int y, int w, int h, int a, int alen);
C_EXPORT void QPainter_drawPie2(QPainterH handle, PRect p1, int a, int alen);
C_EXPORT void QPainter_drawChord(QPainterH handle, int x, int y, int w, int h, int a, int alen);
C_EXPORT void QPainter_drawChord2(QPainterH handle, PRect p1, int a, int alen);
C_EXPORT void QPainter_drawLineSegments(QPainterH handle, PPointArray p1, int index, int nlines);
C_EXPORT void QPainter_drawPolyline(QPainterH handle, PPointArray p1, int index, int npoints);
C_EXPORT void QPainter_drawPolygon(QPainterH handle, PPointArray p1, bool winding, int index, int npoints);
C_EXPORT void QPainter_drawQuadBezier(QPainterH handle, PPointArray p1, int index);
C_EXPORT void QPainter_drawPixmap(QPainterH handle, int x, int y, const QPixmapH p3, int sx, int sy, int sw, int sh);
C_EXPORT void QPainter_drawPixmap2(QPainterH handle, const QPointH p1, const QPixmapH p2, PRect sr);
C_EXPORT void QPainter_drawPixmap3(QPainterH handle, const QPointH p1, const QPixmapH p2);
C_EXPORT void QPainter_drawImage(QPainterH handle, int x, int y, const QImageH p3, int sx, int sy, int sw, int sh);
C_EXPORT void QPainter_drawImage2(QPainterH handle, const QPointH p1, const QImageH p2, PRect sr);
C_EXPORT void QPainter_drawImage3(QPainterH handle, const QPointH p1, const QImageH p2);
C_EXPORT void QPainter_drawImage4(QPainterH handle, int x, int y, const QImageH p3, int sx, int sy, int sw, int sh, int conversion_flags);
C_EXPORT void QPainter_drawImage5(QPainterH handle, const QPointH p1, const QImageH p2, PRect sr, int conversion_flags);
C_EXPORT void QPainter_drawImage6(QPainterH handle, const QPointH p1, const QImageH p2, int conversion_flags);
C_EXPORT void QPainter_drawTiledPixmap(QPainterH handle, int x, int y, int w, int h, const QPixmapH p5, int sx, int sy);
C_EXPORT void QPainter_drawTiledPixmap2(QPainterH handle, PRect p1, const QPixmapH p2, const QPointH p3);
C_EXPORT void QPainter_drawTiledPixmap3(QPainterH handle, PRect p1, const QPixmapH p2);
C_EXPORT void QPainter_drawPicture(QPainterH handle, const QPictureH p1);
C_EXPORT void QPainter_fillRect(QPainterH handle, int x, int y, int w, int h, const QBrushH p5);
C_EXPORT void QPainter_fillRect2(QPainterH handle, PRect p1, const QBrushH p2);
C_EXPORT void QPainter_eraseRect(QPainterH handle, int x, int y, int w, int h);
C_EXPORT void QPainter_eraseRect2(QPainterH handle, PRect p1);
C_EXPORT void QPainter_drawText(QPainterH handle, int x, int y, PWideString p3, int len);
C_EXPORT void QPainter_drawText2(QPainterH handle, const QPointH p1, PWideString p2, int len);
C_EXPORT void QPainter_drawText3(QPainterH handle, int x, int y, int w, int h, int flags, PWideString p6, int len, PRect br, char** internal);
C_EXPORT void QPainter_drawText4(QPainterH handle, PRect p1, int flags, PWideString p3, int len, PRect br, char** internal);
C_EXPORT void QPainter_boundingRect(QPainterH handle, PRect retval, int x, int y, int w, int h, int flags, PWideString p6, int len, char** intern);
C_EXPORT void QPainter_boundingRect2(QPainterH handle, PRect retval, PRect p1, int flags, PWideString p3, int len, char** intern);
C_EXPORT int QPainter_tabStops(QPainterH handle);
C_EXPORT void QPainter_setTabStops(QPainterH handle, int p1);
C_EXPORT int * QPainter_tabArray(QPainterH handle);
C_EXPORT void QPainter_setTabArray(QPainterH handle, int* p1);

C_EXPORT HANDLE QPainter_handle2(QPainterH handle);
C_EXPORT void QPainter_initialize();
C_EXPORT void QPainter_cleanup();

#endif
